package com.aaa.doctor.service;

import com.aaa.entity.CareHistory;
import com.aaa.vo.Result;

import java.util.List;


public interface CareHistoryService {

    /**
     * 根据patientId查询就诊信息 -- 三表联查
     * @param patientId
     * @return
     */
    Result<List<CareHistory>> getCareHistoryByPatientId(String patientId);

    /**
     * 根据挂号单ID查询对应的病历信息
     * @param registrationId
     * @return
     */
    Result<List<CareHistory>> getCareHistoryByRegId(String registrationId);

    /**
     * 保存病例
     * @param regId
     * @param careHistory
     * @return
     */
    Result saveCareHistory(String regId, CareHistory careHistory);
}
